package cn.compayname.service.impl;

import cn.compayname.dao.AccountDao;
import cn.compayname.pojo.Account;
import cn.compayname.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AccountServiceImpl implements AccountService {

    @Autowired
    private AccountDao accountDao;

    @Override
    public List<Account> findAllAccounts() throws Exception {
        return accountDao.findAllAccounts();
    }

}
